var str = location.search;
str = str.slice(1).split('&');
var json = {};
for (var i = 0; i < str.length; i++) {
    var a = str[i].split('=');
    json[a[0]] = a[1];
}
console.log(json.teamId);
$(function () {
    init();/*初始化*/

});
function init () {
    $.ajax({
        type:"get",
        url:'http://192.168.59.3:8082/console/projectcapital/getShopCapitalListDetail?merchandiseType='+json.merchandiseType+'&shopId='+json.shopId+'&pageNum=10&pageSize=1&teamId='+json.teamId,
		contentType:"application/json",
        success:function (data) {
            console.log(data);
            var data1 = JSON.parse(data).data.list;
            $("#table-fundManage").bootstrapTable({
                data:data1,
                onLoadSuccess:function(data){       //console.log(data);
                    console.log(data);
                }
            })


        },
        error:function (err) {
            console.log(err);

        }

    });





}
// 未付金额
function nuPay(val, row, index) {

    return row.currentNeedpay - row.currentHaspaid;

}

// 表格序号
function indexFmt(val, row, index) {
    return index + 1;
}
function responseHandler (response) {

    var needData = {
        rows: response.data.list,
        total: response.data.total
    };
    return needData;

}